<template>
  <div :class="`theme-btn ${size} theme-btn-color`" v-on="$listeners">
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: "ThemeButton",
  props: {
    size: {
      type: String,
      default: "medium", // medium / small / mini
    },
  },
};
</script>

<style lang="less" scoped>
.theme-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
  &.mini {
    padding: 0 15px;
    height: 28px;
    line-height: 28px;
    font-size: 12px;
    border-radius: 3px;
  }
}
</style>
